public class Demo04 {
    public static void main(String[] args) {
       int num = 78;
       String level = num >= 60 ? "通过" : "补考";
        System.out.println(level);

        int number = 85;
        String grade = number < 60 ? "不合格" : "合格";
        grade = number >= 90 ? "优秀" : grade;
        System.out.println(grade);

    }
}
